package com.neusoft.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.neusoft.po.Business;
import com.neusoft.po.CommonResult;


//指定调用的食品微服务名
@FeignClient(name="business-server",fallback=BusinessFeignClientCallBack.class)
public interface BusinessFeignClient {
	
	@GetMapping("/BusinessController/getBusinessById/{businessId}")
	public CommonResult<Business> getBusinessById(@PathVariable("businessId") Integer businessId);
}
